package com.cskaoyan.service;

import com.cskaoyan.bean.data.CommentListData;
import com.cskaoyan.bean.data.CountCommentData;
import com.cskaoyan.domain.MarketComment;

import java.util.List;
import java.util.Map;

public interface MarketCommentService {
    List<MarketComment> selectCommentByValueId(Integer id);

    //按类型、商品id查看评论
    List<CommentListData> queryCommentsByValueIdAndType(Integer valueId, Byte type, Boolean showType);

    //评论的总数
    Long countComments(Integer id);

    //统计有图片的评论数量、评论总数
    CountCommentData countImageOrNoImage(Integer valueId, Byte type);

    // wx comment post 专题精选评论增加
    int updateTopicComment(Map map, Integer userId);

}
